using Newtonsoft.Json;
using QQZiFramework;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace DemoConsole
{

    /// <summary>
    /// 漏损系统 监测量对象实体
    /// </summary>
    [DBTable(TableName = "WSMP_INDICATOR")]
    public class IndicatorInfo : IDBEntity
    {
        /// <summary>
        /// 监测量Id
        /// </summary>
        [JsonProperty(PropertyName = "indicatorId")]
        [DBField(Usage = DBFieldUsage.PrimaryKey)]
        public int Indicator_Id { get; set; }

        /// <summary>
        /// 监测量名称
        /// </summary>
        [JsonProperty(PropertyName = "indicatorName")]
        public string Indicator_Name { get; set; }

        /// <summary>
        /// 监测量Code
        /// </summary>
        [JsonProperty(PropertyName = "indicatorCode")]
        public string Indicator_Code { get; set; }

        /// <summary>
        /// 监测量类型
        /// </summary>
        [JsonProperty(PropertyName = "indicatorType")]
        public string Indicator_Type { get; set; }

        /// <summary>
        /// 监测量值
        /// </summary>
        [JsonProperty(PropertyName = "indicatorValue")]
        [DBField(Usage = DBFieldUsage.NoField)]
        public double Indicator_Value { get; set; }

        /// <summary>
        /// OBJECT_ID
        /// </summary>
        public string OBJECT_ID { get; set; }

        public int Scada_Object_Id { get; set; }


        public string Indicator_Alias { get; set; }

        public string INDICATOR_TYPE{get;set;}


    }
    [DBTable(IsVirtual = true,TableName = "WSMP_INDICATOR")]
    public class IndicatorInfoEx : IndicatorInfo
    {
        public string OBJECT_TYPE { get; set; }
    }
}
